package com.scs.application.modules.dept.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.FlowEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "手术备货申请表")
@TableName("dept_oprt_apply")
public class OprtApply extends FlowEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "备货申请科室/手术间ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String deptId;

    @EntityFieldAnnotation(
            text = "备货申请科室/手术间名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String deptName;

    @EntityFieldAnnotation(
            text = "申请类型",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String oprtApplyType;

    @EntityFieldAnnotation(
            text = "业务单号",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtApplyKey;

    @EntityFieldAnnotation(
            text = "业务日期",
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Date oprtApplyDate;

    @EntityFieldAnnotation(
            text = "业务主办人",
            length = "20",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String oprtApplyUser;

    @EntityFieldAnnotation(
            text = "手术单ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtId;

    @EntityFieldAnnotation(
            text = "手术名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtName;

    @EntityFieldAnnotation(
            text = "手术单号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String oprtCode;

    @EntityFieldAnnotation(
            text = "手术日期",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date oprtDate;

    @EntityFieldAnnotation(
            text = "患者id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientId;

    @EntityFieldAnnotation(
            text = "患者名称",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientName;

    @EntityFieldAnnotation(
            text = "患者年龄",
            length = "10",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientAge;

    @EntityFieldAnnotation(
            text = "住院编号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String patientNo;

    @EntityFieldAnnotation(
            text = "床位号",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String bedNo;

    @EntityFieldAnnotation(
            text = "主治医生",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String docNameSug;

    @EntityFieldAnnotation(
            text = "申请医生",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String docNameApply;

    @EntityFieldAnnotation(
            text = "备货申请仓库ID（手术间）",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseIdFrom;

    @EntityFieldAnnotation(
            text = "备货申请仓库名称（手术间）",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseNameFrom;

    @EntityFieldAnnotation(
            text = "配送仓库ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseIdTo;

    @EntityFieldAnnotation(
            text = "配送仓库名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseNameTo;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;

    @EntityFieldAnnotation(
            text = "供应商Id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String supplierId;

    @EntityFieldAnnotation(
            text = "供应商名称",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String supplierName;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

}
